package com.gt.service;

import com.gt.model.User;

import java.util.List;

public interface DemoService {

    /**
     * 加法测试
     * @param a
     * @param b
     * @return
     */
    public Integer add(Integer a, Integer b);

    /**
     * 复杂对象
     * @param args
     * @return
     */
    public List<Object> toList(Object ... args);

    /**
     * 获取对象
     * @param user
     * @return
     */
    public User getUser(User user);

    /**
     * 抛出异常
     */
    public void throwsThroeable();

}
